﻿<%@ Page Language="c#" CodeBehind="Hosting_package.aspx.cs" MasterPageFile="~/App_MasterPages/layout.Master"
    AutoEventWireup="false" Inherits="ud_gSDMS.Cat.Hosting_package" %>
<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
<portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
    <mp:CornerRounderTop id="ctop1" runat="server" />
    <asp:Panel ID="pnlStoreManager" runat="server" CssClass="art-Post-inner panelwrapper gSDMS">
            <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true" UseLowerCaseArtisteerClasses="true"/>
        <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
        <div class="modulecontent">
            <fieldset>
            <asp:UpdatePanel ID='updatePanel' runat="server" >
                <ContentTemplate>

                <%--<mp:SiteLabel ID="lblInfo" CssClass="title info" runat="server" ResourceFile="gSDMSResource" ConfigKey="gSDMSHostingPackage" />--%>
                <div class="div_title">
                    <a href="/gsdmsmodule/cat/hosting_package.aspx">Hosting package</a>
                    &nbsp;>&nbsp;
                    <a href="">List</a>
                </div>
                <br />
                <div class="div_Edit div_search">
                    <table cellpadding='3' cellspacing='0' border='0' class="tb_search">
                        <tr>
                            <td class="title">Name:</td>
                            <td class="input"><asp:TextBox ID="txtName" runat="server" CssClass="txtInput"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="title">Active:</td>
                            <td class="input"><asp:CheckBox ID="chkActive" runat="server" CssClass="chkInput" Checked="true"></asp:CheckBox></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td colspan="3">
                                <asp:ImageButton ID='btnSearch' runat="server" ImageAlign="Left" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/search.png" Width="82px" Height="23px" />
                                 <div class="div_AddNew div_Edit">
                                    <button id="btnAddNew" class="btn_01" type="reset" onclick="javascript:location.href='/gsdmsmodule/cat/hosting_package_edit.aspx?pageid=37'">Add new</button>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <br />
                <div class="gSDMS_Grid">
                    <asp:GridView ID="grdHostPackage" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" 
                        AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" PageSize="10" PagerSettings-Position="Bottom" PagerStyle-HorizontalAlign="Right"
                        CssClass="css_grid"
                        >                        
                        <AlternatingRowStyle CssClass='AlternatingRowStyle' />
                        <EditRowStyle CssClass='EditRowStyle' />
                        <FooterStyle CssClass='FooterStyle' />
                        <HeaderStyle CssClass='HeaderStyle' />
                        <PagerStyle CssClass='PagerStyle' HorizontalAlign="Right" />
                        <RowStyle CssClass='RowStyle' />
                        <SelectedRowStyle CssClass='SelectedRowStyle' />
                   
                        <Columns >
                            <asp:TemplateField HeaderText="#" ItemStyle-CssClass="stt">
                                <ItemTemplate><%# grdHostPackage.PageIndex * grdHostPackage.PageSize + grdHostPackage.Rows.Count + 1%></ItemTemplate></asp:TemplateField>
                            <asp:TemplateField HeaderText="Name" ItemStyle-CssClass="text" SortExpression='Name'>
                                <ItemTemplate><%#Eval("Name") %></ItemTemplate></asp:TemplateField>
                            <asp:TemplateField HeaderText="Size (Mb)" ItemStyle-CssClass="num" SortExpression="Size">
                                <ItemTemplate><%#Eval("Size")%></ItemTemplate></asp:TemplateField>
                            <asp:TemplateField HeaderText="Price (VND)" ItemStyle-CssClass='num' SortExpression="Price">
                                <ItemTemplate><%#Eval("Price")%></ItemTemplate></asp:TemplateField>
                            <asp:TemplateField HeaderText="Description" ItemStyle-CssClass='text' HeaderStyle-Width="250px">
                                <ItemTemplate><%#Eval("Description")%></ItemTemplate></asp:TemplateField>
                            

                            <asp:TemplateField HeaderText="Edit" ItemStyle-CssClass="edit-del">
                                <ItemTemplate>
                                    <a class="edit" href='<%# "/gsdmsmodule/cat/hosting_package_edit.aspx?pageid=37&id=" + Eval("CAT_Hosting_ID") %>' title="Edit">&nbsp;</a>
                                </ItemTemplate></asp:TemplateField>
                            <asp:TemplateField HeaderText="Del" ItemStyle-CssClass="edit-del">
                                <ItemTemplate>
                                    <asp:ImageButton ID="btnDelete" CommandName="delete" CommandArgument='<%# Eval("CAT_Hosting_ID") %>' CssClass="delete" runat="server" ToolTip="Delete" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/delete.png" OnClientClick="return confirm('Do you want to delete?')"/>
                                </ItemTemplate></asp:TemplateField>
                        </Columns>

                        <EmptyDataTemplate>
                            <div class="div_dataEmpty">Data not found!</div>
                        </EmptyDataTemplate>
                    </asp:GridView>

                   
                  
                </div>
                </ContentTemplate>
            </asp:UpdatePanel>
                
            </fieldset>
        </div>
        </portal:mojoPanel>
        <div class="cleared"></div>
    </asp:Panel>
    <mp:CornerRounderBottom id="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
